package example;

import com.ai.common.util.FtpUtil;

public class TestEvt {

	private static String cfgFtpPathCode = "JZYX_FILE_IN";
	public static void main(String[] args) {
		testFtp();

	}
	public static void testFtp(){
		try{
		FtpUtil ftp = new FtpUtil(cfgFtpPathCode);
		String[] dirs = ftp.listDir();
		for (String dir : dirs) {
			System.out.println("FTP DIR:"+dir);
		}
		String[] files = ftp.list();
		for (String filename : files) {
			System.out.println("FTP name:"+filename);
		}
		System.out.println("FTP is ok");
		}catch(Exception e){
			e.printStackTrace();

			System.out.println("FTP is error");
		}
	}

}
